package top.leyi.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;


public class User implements Serializable  {

    private static final long serialVersionUID = 123123L;


    private int id;
    private String username;
    private String wechat;
    @JsonIgnore
    private String openId;
    private String headPic;
    @JsonIgnore
    private String token;
    @JsonIgnore
    private String qq;
    private String department;
    private String classname;
    private String bgPic;
    private String word;
    @JsonIgnore
    private String phone;
    @JsonIgnore
    private String email;
    @JsonIgnore
    private int roleId;
    private int classId;


    public String getBgPic() {
        return bgPic;
    }

    public void setBgPic(String bgPic) {
        this.bgPic = bgPic;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", wechat='" + wechat + '\'' +
                ", openId='" + openId + '\'' +
                ", headPic='" + headPic + '\'' +
                ", token='" + token + '\'' +
                ", qq='" + qq + '\'' +
                ", department='" + department + '\'' +
                ", classname='" + classname + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", classId=" + classId +
                '}';
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }

    public String getHeadPic() {
        return headPic;
    }

    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public User(){

    }

    public User(String username, String wechat, String headPic, String qq, String department, String classname, String phone, String email) {
        this.username = username;
        this.wechat = wechat;
        this.headPic = headPic;
        this.qq = qq;
        this.department = department;
        this.classname = classname;
        this.phone = phone;
        this.email = email;
    }
    public User(int classId, String username, String wechat, String headPic, String qq, String phone, String email, String word, String bgPic) {
        this.classId = classId;
        this.username = username;
        this.wechat = wechat;
        this.headPic = headPic;
        this.qq = qq;
        this.phone = phone;
        this.email = email;
        this.word = word;
        this.bgPic = bgPic;
    }
}
